define(function (require, exports, module) {
    var loadcomponent = require("static/script/import.js");

    var app_routers_path = [
        {
            name: "index",
            path: "/",
            page_name: "首页",
            meta: {},
        },
        {
            name: "detail",
            path: "/detail",
            component: loadcomponent("static/view/detail.vue"),
            meta: {},
        },
    ];

    var router = new VueRouter({
        scrollBehavior: function (to, from, savedPosition) {
            return { x: 0, y: 0 };
        },
        routes: app_routers_path,
    });
    router.beforeEach(function (to, from, next) {
        next();
    });
    router.afterEach((to, from) => {});
    module.exports = router;
});
